import { S } from '../../s';
import { IPSAppDEWFActionView } from './ipsapp-dewfaction-view';
import { PSAppDEEditViewImpl } from './psapp-deedit-view-impl';

export class PSAppDEWFActionViewImpl
  extends PSAppDEEditViewImpl
  implements IPSAppDEWFActionView
{
  get openMode():
    | 'INDEXVIEWTAB'
    | 'POPUP'
    | 'POPUPMODAL'
    | 'POPUPAPP'
    | 'DRAWER_LEFT'
    | 'DRAWER_RIGHT'
    | 'DRAWER_TOP'
    | 'DRAWER_BOTTOM'
    | 'POPOVER'
    | 'USER'
    | 'USER2'
    | 'USER3'
    | 'USER4' {
    return this.M.openMode;
  }

  get wFStepValue(): string {
    return this.M.wFStepValue;
  }

  get wFUtilType():
    | 'SENDBACK'
    | 'SUPPLYINFO'
    | 'ADDSTEPBEFORE'
    | 'ADDSTEPAFTER'
    | 'TAKEADVICE'
    | 'SENDCOPY'
    | 'REASSIGN'
    | 'USERACTION'
    | 'USERACTION2'
    | 'USERACTION3'
    | 'USERACTION4'
    | 'USERACTION5'
    | 'USERACTION6' {
    return this.M.wFUtilType;
  }

  get enableWF(): boolean {
    return this.M.enableWF;
  }

  get wFIAMode(): boolean {
    return this.M.wFIAMode;
  }
  get cls(): string {
    return 'PSAppDEWFActionViewImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._21 || cls == S._22) return true;
    return super.instanceof(cls);
  }
}
